package com.healthdata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.healthdata.entity.User;
import com.healthdata.entity.UserApplication;
import com.healthdata.vo.UserApplicationVO;

import java.util.List;

public interface UserService extends IService<User> {
    User getByUsername(String username);
    boolean register(User user);
    String login(String username, String password);
    boolean resetPassword(String username, String email,String newPassword);
    List<User> getAllUsers();
    // 提交申请
    boolean submitApplication(UserApplication application);
    // 获取用户申请信息
    List<UserApplicationVO> getUserApplication(Long userId);
    // 获取所有申请信息
    List<UserApplicationVO> getAllApplications();
    // 处理申请
    boolean handleApplication(Long applicationId, boolean isApproved);
    // 根据申请ID获取申请信息
    UserApplication getApplicationById(Long applicationId);
    // 更新申请信息
    boolean updateApplication(UserApplication application);
    // 获取所有审核员待处理的申请信息
    List<UserApplicationVO> getAllAuditorApplications();
    List<UserApplicationVO> getAllAdminApplications(); // 新增方法，获取所有反馈给管理员的申请
}